package me.xiaosiqi.syt.cmn.easyexcel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import me.xiaosiqi.syt.cmn.entiy.UserData;

import java.util.Map;

/**
 * @author: xiaosiqi
 * @date:2022/7/30 18:01
 */
public class ExcelListener  extends AnalysisEventListener<UserData> {

    @Override
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
        System.out.println(headMap.toString());
    }
    @Override
    public void invoke(UserData userData, AnalysisContext analysisContext) {
        System.out.println(userData.toString());
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
